-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tracking: move CPU/CPU_MODEL to Makefile.features #11477
Tracking: move CPU/CPU_MODEL to Makefile.features #11477
Conversation
a37f063
to
399e02a
Compare
399e02a
to
f2d9013
Compare
f2d9013
to
860dcfa
Compare
5746968
to
2bd0746
Compare
2bd0746
to
06b57d0
Compare
8d3c34e
to
789257b
Compare
e94b04c
to
ad7221a
Compare
169bcf6
to
58317f4
Compare
0248785
to
829261c
Compare
829261c
to
9de1545
Compare
08d2fae
to
cf2bee8
Compare
cf2bee8
to
4d2884f
Compare
Reset milestone to 2019.10. We anticipate that the imminent merge of #12410 allows this PR also to be merged. |
…ures CPU must now be defined by `$(RIOTBOARD)/$(BOARD)/Makefile.features` or one of its common included Makefile.features file. The cpu `Makefile.dep` file can now automatically be included when it exists.
4d2884f
to
eff80f7
Compare
Migration is now finished! Thank you for everybody who helped. Last commit remaining in this branch is the one forbidding the old behavior. Currently checking that CPU is defined is enforced in RIOT by the |
The PR enforcing the new behavior is in #12417 |
Contribution description
This pull request is a tracking pull request for moving the definition of
CPU
andCPU_MODEL
to the board Makefile.features.Moving these definitions is required to be parse
Makefile.dep
before `Makefile.include.It is part of #9913
This pull request is going to be split
Makefile.features: prerequisites for moving CPU/CPU_MODEL to boards/Makefile.features Makefile.features: prerequisites for moving CPU/CPU_MODEL to boards/Makefile.features #11478
Required cleanups
slwstk6000b
BOARD_MODULE
andMODULE_CPU
, andCPU_MODEL
.Move the
CPU_MODEL
includes forMakefile.nrf52832.features
innrf52/Makefile.features
(related to ble/softdevice: add ble_nordic_softdevice feature #11769)Questions:
CPU_MODEL
Currently the only place left where
CPU_MODEL
is not defined inboard/.../Makefile.features
ismakefiles/arch/cortexm.inc.mk
.Would it make sense to define with this value by default globally in RIOT if not defined ? I could define it now in
Makefile.features
.It would remove the need to define them for cpu
fe310
,esp*
,lpc1768
(the only one using the value ofcortexm.inc.mk
.Another solution is to define it in
cpu/cortexm_common/Makefile.features
but it would be the only one defined incpu
.Testing procedure
First compiling everything in the CI should still work. The number of jobs should stay the same.
I will also provide a way to verify that the
FEATURES_PROVIDED
do not change.I am currently running https://gist.github.com/cladmi/893e63740f935cbfe4087db19a8c17af
For
tests/riotboot_hdr
, the output always contains this even on master for some boards.Issues/PRs references
Tracking issue #9913 on dependency handling order.